from typing import Protocol

from src.domain.order.entities.proxy import ProxyEntity


class ProxyRepo(Protocol):
    # async def update_authorization_type(self, proxies: list[ProxyEntity], authorization_type: AuthorizationType) -> None:
    #     raise NotImplementedError
    #
    # async def update_rotation_period(self, proxies: list[ProxyEntity], reload_type: ReloadType) -> None:
    #     raise NotImplementedError

    async def acquire_proxy_by_id(self, proxy_id: int) -> ProxyEntity:
        """Получение прокси по id"""
        raise NotImplementedError

    async def update_proxy(self, proxy: ProxyEntity) -> None:
        """Обновление прокси"""
        raise NotImplementedError
